//
//  UIButton+ManageTargetActions.m
//  mmbang
//
//  Created by CuiPanJun on 14-7-31.
//  Copyright (c) 2014年 iyaya. All rights reserved.
//

#import "UIButton+ManageTargetActions.h"

@implementation UIButton (ManageTargetActions)

- (void)removeAllActionsForTarget:(id)target controlEvent:(UIControlEvents)events{
    
    NSArray *allActionsForSelf = [self actionsForTarget:target forControlEvent:events];
    for (NSString *action in allActionsForSelf) {
        [self removeTarget:target action:NSSelectorFromString(action) forControlEvents:events];
    }
    
}

@end
